Infinity-Get-Inventory-By-Type names a function, with lambda list (D USER RECIPIENT/S):
Get a subset of items from your own inventory
Lisp GET-INVENTORY-BY-TYPE = JSON getInventoryByType
{ c: "getInventoryByType", d: { type: TYPE, [withActive: BOOLEAN ], [who: LOGIN-NAME ] } }
The type can be one of two options.
For legacy compatibility, the following list of type codes can be supplied. These may be more convenient for the front-end. Legacy users of code sequences beginning with # or $ are no longer supported, however.
All items which can be worn in any slot other than TRUNK, HAND, LHAND or RHAND, or PIVITZ
Only Pivitz items
Ignored for backward-compatibility.
Any item which cannot be equipped in any way
Ignored for backward-compatibility
Ignored for backward-compatibility
Ignored for backward-compatibility
Ignored in 2.0 but may be revived in 2.1
All items which can be equipped in TRUNK slot, or HAND, LHAND or RHAND (for non-Toot characters).
In addition, type can be a string containing the word point followed by a space and the moniker of an avatar attachment point, in which case all items which can be equipped to that point (regardless of valence) are returned; or, the word slot followed by a space and the ID number of a specific wear-slot.
Finally, multiple codes can be enumerated by passing as string beginning with $ plus a series of identifiers from the above delimited by :, e.g. $clothes:pivitz.
You can also supply withActive: false to screen out active items.
The optional parameter who specifies whose inventory to list. If not specified, the inventory of the Toot posing the question is returned. Note that inactive items of Toots not owned by you are generally not returned.
In Romance 1.2, the type code could not be a point or slot, but it could be a string beginning # with a list of type code numbers; e.g. #2:3.
In Romance 1.2, placed furniture was also returned; this is no longer the case.
Returns a set of items as
{from: "inventory", for: USER-LOGIN, type: TYPE-QUERY inv: { 0: { id: 123, isActive: boolean }, ... }
See GET-INVENTORY-BY-TYPE (UNIMPLEMENTED)
Defined in file src/infinity/legacy-commands.lisp.